<?php

namespace catchAdmin\phone\controller;

use catchAdmin\phone\request\userExt\saveRequest;
use catcher\CatchResponse;

class UserExt extends LoginCatchController
{

    private $model = null;


    public function __construct()
    {
        parent::__construct();

        $this->model = (new \catchAdmin\phone\model\UserExt());
    }


    public function save(saveRequest $request)
    {
        $param = request()->param();

        return CatchResponse::success($this->model->saveData($param));
    }


    ################################# 显示 #####################

    public function read()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->readData($param));
    }

}
